package com.gxt.riaapp.client.mvc;

import com.extjs.gxt.ui.client.event.EventType;
import com.extjs.gxt.ui.client.mvc.AppEvent;
import com.extjs.gxt.ui.client.mvc.Controller;
import com.gxt.riaapp.client.AppEvents;
/**
 * 좌측트리메뉴를 제어할 컬트롤 클래스
 * @author KYS
 *
 */
public class NavigationController extends Controller{
	private NavigationView view;	// AppView.java에서 정의한 viewport의 WestPanel을 구성함.
	public NavigationController() {
		registerEventTypes(AppEvents.Init);	// 사용할 이벤트 등록
	}
	public void initialize() {
	    view = new NavigationView(this);
	  }

	@Override
	public void handleEvent(AppEvent event) {
		forwardToView(view, event);
	}
}
